<template>
    <!-- 标签导航 -->
    <div>
    <!--添加页头-->
    <my-header></my-header>
    <van-tabs
      title-active-color="rgb(138, 43, 226)"
      color="rgb(138, 43, 226)"
      sticky
      background="#fafafa"
      v-model="active"
    >
      <div>
        <van-tab title="热映" to="/list/mavan">
        <!-- 标签内容 -->
        <router-view/>
        </van-tab>
      </div>
      <div>
        <van-tab title="影院" to="/list/cinema">
        <!-- 标签内容 -->
        <router-view/>
        </van-tab>
      </div>
      <div>
        <van-tab title="即将上映" to="/list/play">
        <!-- 标签内容 -->
        <router-view/>
        </van-tab>
      </div>
    </van-tabs>
    </div>
</template>

<script>
export default {
  data() {
    return {
      active: 0,
    };
  },
  mounted(){
     this.$router.push('/list/mavan')
  }
};
</script>

